package org.maylove.wuziqi.service;

import org.maylove.wuziqi.pojo.user.dto.*;

import java.util.List;

public interface UserService {
    String register(UserRegisterDto userRegisterDto);

    Object login(UserLoginDto userLoginDto);

    String changeNicknam(Long userId, UserChangeNickNameDto userChangeNickNameDto);

    String changePassword(Long userId, UserChangePasswordDto userChangePasswordDto);

    UserDto getUserInfo(Long userId);

    Integer createRoom(Long userId);

    Integer joinRoom(Long userId, int roomId);

    void win(Long userId);

    void fail(Long userId);

    UserSimpleDto getSimpleUser(Long userId);

    Integer getIdentity(Long userId);

    String getNickname(Long userId);

    void changeIdentity(UserChangeIdentityDto userChangeIdentityDto);

    List<UserGetDto> getUser(UserPageDto userPageDto);
}
